import java.util.Scanner;

public class Student {

    String hoten;
    int mssv;
    double diemthi;

    public String getHoten() {
        return hoten;
    }

    public void setHoten(String hoten) {
        this.hoten = hoten;
    }

    public int getMssv() {
        return mssv;
    }

    public void setMssv(int mssv) {
        this.mssv = mssv;
    }

    public double getDiemthi() {
        return diemthi;
    }

    public void setDiemthi(double diemthi) {
        this.diemthi = diemthi;
    }

    void NhapDuLieu() {
        Scanner in = new Scanner(System.in);
        System.out.println("Nhap ho ten sinh vien: ");
        String hoten = in.nextLine();
        setHoten(hoten);
        System.out.println("Nhap ma so sinh vien: ");
        int mssv = in.nextInt();
        setMssv(mssv);
        System.out.println("Nhap diem thi cua sinh vien:");
        double diemthi = in.nextDouble();
        if((diemthi<0.0)||(diemthi>10.0)){
            System.out.println("ban nhap sai diem,hay nhap lai");
        diemthi = in.nextDouble();}
        setDiemthi(diemthi);
    }

    void HienThi() {
        System.out.println("|\t   " + getHoten() + "|\t  " + getMssv() + "|\t  " + getDiemthi());
        System.out.println("___________________________________");
    }
}